﻿namespace OasisCiq.Xpil
{
    using System;
    using System.Linq;

    /// <summary>
    /// List of person's physical features
    /// </summary>
    public class FeatureTypeList : XS.XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[] 
        {
            "Weight",
            "Height",
            "HairColour",
            "EyeColour",
            "SkinColour",
            "Waist",
            "Breast",
            "Hip"
        };

        public FeatureTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}